package com.wanho.qz103.hrsaas.sys.dao;

import com.wanho.qz103.hrsaas.commons.dao.BaseDAO;
import com.wanho.qz103.hrsaas.commons.exception.DAOException;
import com.wanho.qz103.hrsaas.commons.exception.DataAccessException;
import com.wanho.qz103.hrsaas.sys.pojos.User;

import java.util.List;

/**
 * 对： sys_user_info表基本操作
 */
public interface UserDAO extends BaseDAO<User> {
    /**
     * 批量导入数据  excel 导入
     * @param userList
     * @return
     * @throws DAOException
     */
    boolean insertBatch(List<User> userList) throws DAOException ;
    /**
     * 根据 手机号 查询用户对象
     * @param mobile
     * @return
     * @throws DAOException
     */
    User selectByMobile(String mobile) throws DAOException ;
}
